package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
 * Perforce Revision:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/PassiveHitsBTSBasicFactStatement.java $
 *  $Revision: #7 $  $Change: 116205 $  $DateTime: 2012/10/24 16:02:29 $  $Author: Arik.Sher $
 */

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.IPassiveHitsBTSConfig;


public class PassiveHitsBTSBasicFactStatement
extends AbsStatement<IPassiveHitsBTSConfig>
{
	protected final static long esper_time_period_passive_hits = 10;

	@Override
	protected String createEplExpression() {
		String str =
		String.format(eplExpressionText
			, config.getName()                   //1. configuration name.
			, esper_time_period_passive_hits     //2. windows number of seconds.
			, getRegion()                        //3. region          
			, config.getUnavailablePriceTimeThreshold() // 4. unavailable price time threshold
	    	);

		return str;
	}
	
}
